package cn.iune.erp.inventory;


import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface IStorageItemDao {
	
	public void insert(StorageItem obj);
	
	public void delete(String fID);
	
	public StorageItem update(StorageItem obj);

	public List<StorageItem> getAll();
	
	public StorageItem getByID(String fID);

	BigDecimal getCostingAmount(List<Object> params) throws SQLException;

	BigDecimal getQuantityL(List<Object> params);

	JSONObject query(JSONObject data) throws SQLException;

	StorageItem getByNo(String storageID, String itemID);

	List<StorageItem> getByStorageID(String storageID);

	List<StorageItem> getList(String enterpriseNo);

	JSONObject querySimple(JSONObject data) throws SQLException;

	JSONObject create(JSONObject data);

	List<StorageItem> getStorageList(String storehouseID, String itemID);

	List<StorageItem> getList(String storehouseID, String enterpriseNo);

	List<StorageItem> getByItemID(String itemID, String enterpriseNo);


}
